#!/usr/bin/env php
<?php
/**
 * doctrineCli.php
 * script for working with PHPDoctrine in CLI(command line interface)
 * List of arguments you can see, when run this script without args. e.g ./doctrineCli.php
 * 
 * @author Diordienko Mykhail (i@feodosian.com)
 *
 */
define('DS',        DIRECTORY_SEPARATOR);
define('MAIN_ROOT', realpath(dirname('../../../../../') . DS));
require_once MAIN_ROOT.DS.'public/Application.php';
$application = new Application();
$application->init();
$cli = new Doctrine_Cli(XCore_Registry::get('doctrine_config'));
$cli->run($_SERVER['argv']);
